#pragma once
#include "cgzCTcpWC.h"

class cgzCTcpGateWC : public cgzCTcpWC
{
public:
    cgzCTcpGateWC(cgzCThreadPool *pool, const char *name, const std::string ip, const int port, const int cid);
    virtual ~cgzCTcpGateWC();

public:
    virtual bool sticking();
    virtual bool todoret(cgzGateHeader &header);
    bool run(cgzCLoopC* task) override;

private:
    //{[msgid] = targetid}
    std::unordered_map<int, int> m_gates;
};